package com.sxt.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 雷哥
 * @Date: 2020/10/07/1:13
 * @Description:
 */
@Configuration
public class RabbitMQConfig {

  @Bean
  public Queue hello(){
    return new Queue("hello");
  }

  @Bean
  public Queue work(){
    return new Queue("work");
  }
}
